FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER jeecgos@163.com

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /oauth2-gateway

WORKDIR /oauth2-gateway

EXPOSE 9999

ADD ./target/micro-gateway-0.0.1-SNAPSHOT.jar ./

CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar micro-gateway-0.0.1-SNAPSHOT.jar